package com.nine.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.nine.IService.AdminService;
import com.nine.dao.AdminDAO;

public class AdminServiceImpl implements AdminService{
	
	public boolean checkAdminLogin(String adminId, String password) {
		ApplicationContext ctx = 
			   new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml");
		
		AdminDAO adminDAO = (AdminDAO) ctx.getBean("AdminDAO");
		return adminDAO.checkAdminLogin(adminId, password);
	}

}
